package com.youkeda.app.model;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * @ClassName Result
 * @Author 刘正星
 * @Date 2020/8/18 17:56
 **/
@Data
public class Result<D> implements Serializable {
    @JsonProperty("success")
    private boolean success = false;
    private String message ;
    private String code ;
    private D data;

    public Result() {
    }

    public Result(boolean success, String message, String code, D data) {
        this.success = success;
        this.message = message;
        this.code = code;
        this.data = data;
    }
}
